<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // try
        // catch()
        // finally
       try {
        //    console.log(a);
        console.log('123');
       } catch (error) {
           console.log(error.message); //a is not defined
       }
    // finally{
    //     //    最后执行 - try-finally不管你有没有错，都会执行。
    //         console.log("最后执行");
    //    }

    console.log("end");



    </script>
</body>

</html>